﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ShareFrame.Entity.DTO
{
    /// <summary>
    /// ElasticSearch配置信息
    /// </summary>
    public class ElasticSearchOption
    { 
        /// <summary>
        /// 
        /// </summary>
        public bool enabled { get; set; }

        /// <summary>
        /// 节点集合信息
        /// </summary>
        public List<string> nodes { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string indexformat { get; set; }
    }

    /// <summary>
    /// Redis配置信息
    /// </summary>
    public class RedisOption
    {
        /// <summary>
        /// Redis节点地址
        /// </summary>
        public string RedisEndpoint { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string Pwd { get; set; }
    }

    /// <summary>
    /// MongoDB配置对象
    /// </summary>
    public class MongoDBOptions
    {
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string PassWord { get; set; }

        /// <summary>
        /// MongoDB连接地址
        /// </summary>
        public string Url { get; set; }

        /// <summary>
        /// 数据库名称
        /// </summary>
        public string Db { get; set; }
    }


    /// <summary>
    /// 数据库连接配置信息实体模型
    /// </summary>
    public class BaseDbOption 
    {
        /// <summary>
        /// 数据库类型
        /// </summary>
        public string DatabaseType { get; set; }

        /// <summary>
        /// 数据库连接字符串
        /// </summary>
        public string ConnectionString { get; set; }
    }

    /// <summary>
    /// 微信小程序配置信息
    /// </summary>
    public class WxMiniAppConfig
    {
        /// <summary>
        /// 小程序ID
        /// </summary>
        public string AppId { get; set; }

        /// <summary>
        /// 小程序密钥
        /// </summary>
        public string AppSecret { get; set; }
    }

}
